package com.example.villagemanager.model.bean;

import java.util.List;

public class Menu {
    private Long id;
    private Long value;



    /**
     * 父菜单ID
     */
    private Long parentId;

    /**
     * 菜单名称
     */
    private String label;
    private String name;

    private int types;
    /**
     * 路由路径(浏览器地址栏路径)
     */
    private String path;

    /**
     * 组件路径(vue页面完整路径，省略.vue后缀)
     */
    private String component;

    /**
     * 权限标识
     */
    private String perm;

    /**
     * 显示状态(1:显示;0:隐藏)
     */
    private Integer visible;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 菜单图标
     */
    private String icon;

    /**
     * 外链路径
     */
    private String redirect;

    /**
     * 拥有路由的权限
     */
    private List<String> roles;
    private List<Menu> children;
    public Long getId() {
        return id;
    }

    public Long getValue() {
        return value;
    }

    public Long getParentId() {
        return parentId;
    }

    public String getLabel() {
        return label;
    }

    public String getName() {
        return name;
    }

    public int getTypes() {
        return types;
    }

    public String getPath() {
        return path;
    }

    public String getComponent() {
        return component;
    }

    public String getPerm() {
        return perm;
    }

    public Integer getVisible() {
        return visible;
    }

    public Integer getSort() {
        return sort;
    }

    public String getIcon() {
        return icon;
    }

    public String getRedirect() {
        return redirect;
    }

    public List<String> getRoles() {
        return roles;
    }

    public List<Menu> getChildren() {
        return children;
    }
    public void setId(Long id) {
        this.id = id;
    }

    public void setValue(Long value) {
        this.value = value;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setTypes(int types) {
        this.types = types;
    }



    public void setPath(String path) {
        this.path = path;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public void setPerm(String perm) {
        this.perm = perm;
    }

    public void setVisible(Integer visible) {
        this.visible = visible;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public void setRedirect(String redirect) {
        this.redirect = redirect;
    }

    public void setRoles(List<String> roles) {
        this.roles = roles;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }
}
